package com.hang.gymmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hang.gymmanager.entity.SeatEntity;
import com.hang.gymmanager.res.ActSeatRes;
import com.hang.gymmanager.res.CenterCoursePageRes;
import com.hang.gymmanager.res.CenterTicketPageRes;
import com.hang.gymmanager.res.UserSeatRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface SeatMapper extends BaseMapper<SeatEntity> {
    List<ActSeatRes> getSeat(@Param("actId") Integer actId);


    List<UserSeatRes> userSeatStatus(@Param("activityId") Integer activityId);

    Page<CenterTicketPageRes> userCenterTicket(@Param("userId") Integer userId,
                                               Page page);
}
